<?php
/*
* Tool Name: Free BaZhan Tool
* My URI: https://ba.aa1.cn/
* Author: 夏柔
* Author URI: https://www.aa1.cn/
* Description: 免费扒站单页系统
* Version: 1.0.0
* Requires PHP: 5.0～8.0
*/
$baurl = $_SERVER['HTTP_HOST'];
require __DIR__.'/header.html';
// 方法可配合 Thinkphp or 百度云CDN 错误页跳转 （502、504）
$csts = $_GET['alert'];
?>


<body>
    <!--[if lt IE 8]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    <div id="preloader" class="preloader">
        <div class="inner">
            <div class="line1"></div>
            <div class="line2"></div>
            <div class="line3"></div>
        </div>
    </div>
    <section class="fxt-template-animation fxt-template-layout34" data-bg-image="img/elements/bg1.png">
        <div class="fxt-shape">
            <div class="fxt-transformX-L-50 fxt-transition-delay-1">
                <img src="img/shape1.png" alt="Shape">
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-lg-8">
                    <div class="fxt-column-wrap justify-content-between">
                        <div class="fxt-animated-img">
                            <div class="fxt-transformX-L-50 fxt-transition-delay-10">
                                <img src="img/bg34-1.png" alt="Animated Image">
                            </div>
                        </div>
                        <div class="fxt-transformX-L-50 fxt-transition-delay-3">
                            <a href="../index.php" class="fxt-logo"><img src="img/logo-top.png" alt="Logo"></a>
                        </div>
                        
                        <div class="fxt-transformX-L-50 fxt-transition-delay-5">
                            <div class="fxt-middle-content">
                                <h2 class="fxt-main-title">一键扒站<span class="tk-tag tk-tag-red">Beta</span></h2>

                                <pre><span id="text" data-text='["输入url即可开始扒站", "记得不要带http(s)://", "祝你扒站愉快"]'></span>...</pre>
                                <div class="showpc fxt-switcher-description1">
                                    手机访问扫描下方二维码
                                </div>
                            </div>
                        </div>
                        <div class="showpc fxt-transformX-L-50 fxt-transition-delay-7">
                            <div class="fxt-qr-code">
                                <img src="https://v.api.aa1.cn/api/api-qrcode/sc.php?text=http://<?php echo $baurl; ?>&size=180" alt="QR">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="fxt-column-wrap justify-content-center">
                        <div class="fxt-form">
                            <!-- 扒站表单 -->
                            <h2 class="fxt-main-title">Try to WebSite.</h2>
                            <p>我承诺扒取的资源不做任何商业及违法用途！</p>
                            <form style="text-align:center" action="bz.php" method="POST">
                                <div class="form-group">
                                    <input type="text"  class="form-control" name="burl" placeholder="无需输入http(s):// " required="required">
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="fxt-btn-fill" onclick="alert('系统运行中，若超时请使用参数方法')">立即扒站</button>
                                </div>
                                <p><span class="tk-tag tk-tag-red">新</span> 您可以尝试参数方法：<code>/bz.php?url=</code></p>
                            </form>
                        </div>
                        <?php 
                        
                        if ($csts != '') {
                            echo('<script src="https://cdn.wpon.cn/js/tc.js" type="text/javascript"></script>');
                            echo ('<script>alert("系统正在努力扒站，请稍等「几分钟」再尝试一次即可下载扒站资源！");</script>');
                        }
                        ?>
<?php require __DIR__.'/footer.html'; ?>